/* 全局样式 */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    height: 100%;
    background-color: #f5f7fa;
    overflow: hidden;
    
}

#app {
    height: 100%;
}

.el-container {
    height: 100%;
}

/* 头部样式 */
.el-header {
    background-color: #409EFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.el-header h2 {
    margin: 0;
    font-size: 20px;
}

.server-info {
    display: flex;
    gap: 15px;
}

/* 侧边栏样式 */
.el-aside {
    background-color: #fff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.el-menu-vertical {
    height: 100%;
    border-right: none;
}

/* 主内容区样式 */
.el-main {
    padding: 20px;
    overflow-y: auto;
}

/* 组件通用样式 */
.component-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
}

.component-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

/* 表单样式 */
.form-container {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* 表格样式 */
.el-table {
    margin-top: 20px;
}

/* 文档内容样式 */
.document-content {
    font-family: monospace;
    white-space: pre-wrap;
    background-color: #f5f7fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e4e7ed;
    max-height: 300px;
    overflow-y: auto;
}

/* 欢迎页面样式 */
.welcome-page {
    text-align: center;
    padding: 50px 0;
}

/* 搜索结果高亮 */
.search-result-highlight {
    background-color: #ffeaa7;
    padding: 2px;
    border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .el-aside {
        width: auto !important;
    }
    
    .search-form {
        flex-direction: column;
    }
}

/* 配置管理样式 */
.config-manager {
    padding: 15px;
}

.yaml-editor {
    width: 100%;
    height: 400px;
}

.editor-container {
    margin: 15px 0;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.CodeMirror {
    height: 400px !important;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
}

.editor-actions {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.config-changed-hint {
    margin-left: 15px;
    color: #E6A23C;
    font-style: italic;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

/* iframe 样式 */
.content-iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c0c4cc #f1f1f1; /* Firefox */
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #909399;
}

/* 添加iframe滚动条美化样式 */
iframe {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #6e8efb #e1e5ee; /* Firefox */
}

/* WebKit浏览器的滚动条样式 (Chrome, Safari, Edge, Opera) */
iframe::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

iframe::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

iframe::-webkit-scrollbar-thumb {
    background: #6e8efb;
    border-radius: 10px;
    transition: background 0.3s ease;
}

iframe::-webkit-scrollbar-thumb:hover {
    background: #4d72fa;
}

iframe::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* iframe 滚动条美化 */
iframe {
    overflow: auto;
    border: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.5) transparent;
}

iframe::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

iframe::-webkit-scrollbar-track {
    background: transparent;
}

iframe::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 4px;
    border: 2px solid transparent;
}

iframe::-webkit-scrollbar-thumb:hover {
    background-color: rgba(155, 155, 155, 0.8);
}

/* 滚动条整体样式 */
iframe::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* 滚动条轨道 */
iframe::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

/* 滚动条滑块 */
iframe::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* 滚动条滑块悬停效果 */
iframe::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}